package com.hl.sfzy.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 资讯公告
 * @TableName publicity
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Publicity {
    /**
     * 
     */
    private Long publicityId;

    /**
     * 公告名称
     */
    private String publicityName;

    /**
     * 公告内容
     */
    private String publicityPublicityText;

    /**
     * 发布时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date publicityCreateTime;

    /**
     * 
     */
    public Long getPublicityId() {
        return publicityId;
    }

    /**
     * 
     */
    public void setPublicityId(Long publicityId) {
        this.publicityId = publicityId;
    }

    /**
     * 公告名称
     */
    public String getPublicityName() {
        return publicityName;
    }

    /**
     * 公告名称
     */
    public void setPublicityName(String publicityName) {
        this.publicityName = publicityName;
    }

    /**
     * 公告内容
     */
    public String getPublicityPublicityText() {
        return publicityPublicityText;
    }

    /**
     * 公告内容
     */
    public void setPublicityPublicityText(String publicityPublicityText) {
        this.publicityPublicityText = publicityPublicityText;
    }

    /**
     * 发布时间
     */
    public Date getPublicityCreateTime() {
        return publicityCreateTime;
    }

    /**
     * 发布时间
     */
    public void setPublicityCreateTime(Date publicityCreateTime) {
        this.publicityCreateTime = publicityCreateTime;
    }

    @Override
    public String toString() {
        return "Publicity{" +
                "publicityId=" + publicityId +
                ", publicityName='" + publicityName + '\'' +
                ", publicityPublicityText='" + publicityPublicityText + '\'' +
                ", publicityCreateTime=" + publicityCreateTime +
                '}';
    }
}